<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Settings {

    var $CI;

    function Settings() {
        $this->CI = & get_instance();
        $this->CI->config->load('database_tables');
        $this->_table = $this->CI->config->item('dbtables');
    }

    function get($tag = null) {
        if($tag == null){
            return null;
        }
        $this->CI->db->where('tag', $tag);
        $this->CI->db->limit(1);
        return $this->CI->db->get($this->_table['settings'])->row()->value;
    }
}

?>